<extend name="./Tm/Dt/User_common.html" />

<block name="main">
	<div class="right_main">
		<div class="panel panel-default">
		  	<div class="panel-heading">
		  		<i class="inde_icon icon_jjmx"></i>在线充值</span>
		  	</div>
		  	<div class="panel-body">
	    		<div class="row-fluid">
					<div class="span12">
						<div class="tabbable" id="tabs-402357">
							<ul class="nav nav-tabs">
								<li class="active">
									<a href="#panel-401018" data-toggle="tab">充值列表</a>
								</li>
								<li>
									<a href="#panel-862181" data-toggle="tab">我要充值</a>
								</li>
							</ul>
							<div class="tab-content">
								<div class="tab-pane " id="panel-862181">
									<div class="h-30"></div>
									<form class="form-horizontal" method="post">
										<div class="form-group">
											<label class="col-sm-2 control-label">平台银行账户</label>
											<div class="col-sm-3" style="width: 45%; margin-top: 10px;">
												<select class="form-control" name="bank_id">
													<foreach name='adminbank' item='v'>
														<option value="{$v.id}">{$v.bank_name}---{$v.bank_num}---{$v.bank_username}---{$v.bank_zhi}</option>
													</foreach>
												</select>
											</div>
										</div>

										<div class="form-group">
											<label class="col-sm-2 control-label">充值类型</label>
											<div class="col-sm-3" style="width: 45%;">
												<select class="form-control" name="log_type">
													<option value="1">注册币</option>
													<option value="2">报单币</option>
												</select>
											</div>
										</div>

										<div class="form-group">
											<label class="col-sm-2 control-label">充值金额</label>
											<div class="col-sm-3">
												<input type="text" class="form-control" name="log_num" required>
											</div>
										</div>

										<div class="form-group">
											<label class="col-sm-2 control-label">二级密码</label>
											<div class="col-sm-3">
												<input type="password" class="form-control" name="secpwd" required>
											</div>
										</div>

										<div class="form-group">
											<div class="col-sm-offset-2 col-sm-3">
												<button type="submit" class="btn btn-primary">提交</button>
											</div>
										</div>
									</form>
								</div>
								<div class="tab-pane active" id="panel-401018">
									<div class="h-30"></div>
									<div class="table-responsive">
										<table class="table">
											<tr>
												<th>充值ID</th>
												<th>充值类型</th>
												<th>充值金额</th>
												<th>充值前金额</th>
												<th>充值后金额</th>
												<th>充值日期</th>
												<th>平台银行卡号</th>
												<th>平台开户银行</th>
												<th>平台开户姓名</th>
												<th>平台支行信息</th>
												<th>是否已审核</th>
											</tr>
											<foreach name='logs' item='log'>
											<tr>
												<td>{$log.log_id}</td>
												<td>{$active[$log['log_type']]}</td>
												<td>{$log.log_num}</td>
												<td>{$log.log_old_num}</td>
												<td>{$log.log_new_num}</td>
												<td>{$log.log_date|date="Y-m-d",###}</td>
												<php>
													$sys_bank_info = json_decode($log['sys_bank_info'], true);
												</php>
												<td>{$sys_bank_info['bank_num']}</td>
												<td>{$sys_bank_info['bank_name']}</td>
												<td>{$sys_bank_info['bank_username']}</td>
												<td>{$sys_bank_info['bank_zhi']}</td>
												<td>{$status[$log['log_is_state']]}</td>
											</tr>
											</foreach>
										</table>
									</div>
									<div aria-label="Page navigation" class="f-right">
										<ul class="pagination">
											{$page}
										</ul>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</block>

<block name="script">
</block>